package com.icetea.demo5FactoryMethod;

/**
 * 模板方法抽象接口
 *
 * @author zhenhai.wan
 * @Date 2021/10/25
 */
public abstract class Creator {
    public Product create(){
        System.out.println("流水线共用逻辑执行..");
        return factoryMethod();
    }

    public abstract Product factoryMethod();

}